package com.fshuqing.learing.spring.applicationcontext;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

/**
 * @author fshuqing
 */
@Component
public class FirstApplicationContext {

    private final ApplicationContext applicationContext;

    @Autowired
    public FirstApplicationContext(ApplicationContext applicationContext) {
        this.applicationContext = applicationContext;
    }

    public void show() {
        System.out.println("FirstApplicationContext = " + applicationContext);
    }
}
